package com.example.framework2002a.view.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;

import com.example.framework2002a.R;
import com.example.framework2002a.databinding.FragmentMeBinding;
import com.example.framework2002a.view.activity.SystemActivity;

public class MeFragment extends Fragment {

    private FragmentMeBinding binding;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        binding = DataBindingUtil.inflate(inflater,R.layout.fragment_me,container,false);

        binding.meXx.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getContext(), SystemActivity.class));
            }
        });

        return binding.getRoot();
    }
}